<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    .red{
        color:red;
    }
    </style>
</head>
<body>
    <div id="app">
        <p :class='{red:isRed}'>小荷才露尖尖角</p>

    </div>
    <script src='vue.js'></script>
    <script>
        const vm=new Vue({
            el:'#app',
            data:{
                isRed:true
            }
        })
    
    </script>
</body>
</html>